/*
 * GroupIO.java
 *
 * Created on November 13, 2006, 3:21 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package GroupIO;
import java.io.*;
import Group.Group;

/**
 *
 * @author rhonda.gantt
 */
public class GroupIO {
   
    public synchronized static void addGroupRecord(Group group, String fileName)
    throws IOException{
        PrintWriter out = new PrintWriter(
                new FileWriter(fileName, true));
        out.println(group.getGname()+ "| "
                + group.getDescription()+ "| "
                + group.getFname()+ " " + group.getLname()+ "|"
                + group.getEmail());
        
        out.close();
    }
    
}
